# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=Compress-Bzip2
pkgname=perl-${_realname}
pkgver=2.26
pkgrel=3
pkgdesc="Interface to Bzip2 compression library"
arch=(i686 x86_64)
license=(GPL2)
makedepends=('libbz2-devel')
depends=('perl' 'libbz2')
groups=('perl-modules')
url="https://metacpan.org/release/Compress-Bzip2"
options=('!emptydirs')
source=("https://www.cpan.org/authors/id/R/RU/RURBAN/${_realname}-${pkgver}.tar.gz")
sha256sums=('5132f0c5f377a54d77ee36d332aa0ece585c22a40f2c31f2619e40262f5c4f0c')

build() {
  cd "${srcdir}/${_realname}-${pkgver}"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "${srcdir}/${_realname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}
